
<%-------------------------------------------------------------------
 * 页面名称：space_scores_history.jsp
 * 功能描述：积分历史
 * Action:cn.agiledata.bank.scores.action.ScoresAction 
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ipb" uri="/WEB-INF/conf/tld/ipb.tld"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%
String path = request.getContextPath();
%>
<script language=javascript src="<%=path%>/js/popcalendar.js"></script>
<script language="javascript">
	function doSearch() {
		var beginDateObj = getObj('beginDate');
		if (beginDateObj.value!="") {
			if (!checkDateInput(beginDateObj)) {
				return;
			}
		}
		
		var endDateObj = getObj('endDate');
		if (endDateObj.value!="") {
			if (!checkDateInput(endDateObj)) {
				return;
			}
			if (beginDateObj.value!="") {
				if (compareDate(beginDateObj.value, endDateObj.value)<0) {
					alert("起始日期不能大于结束日期！");
					return;
				}
			}
		}
		
		document.forms["0"].submit();
	}
</script>
<div id="main">
	<div class="content_right">
		<div style="width:745px;margin-left:10px;">
			<div class="titleinfo">
				积分历史
			</div>
			<div class="edit_pass">
				<div class="edit_pass">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<html:form action="getScoresHistory.do" method="post">
							<tr>
								<td height="35">
									操作日期：
									<ad:calendar property="beginDate" path="<%=path%>" size="20" />
									到
									<ad:calendar property="endDate" path="<%=path%>" size="20" />
									<span class="button_Frame"> <input type="button"
											name="search" value="查 询" class="graybutton_style"
											onclick="doSearch();" /> </span>
								</td>
							</tr>

							<table width="100%" class="tablestyle">
								<tr>
									<th>
										<span class="blue14">操作类型</span>
									</th>
									<th>
										<span class="blue14">金额(元)</span>
									</th>
									<th>
										<span class="blue14">所获积分(分) </span>
									</th>
									<th>
										<span class="blue14">累计积分(分)</span>
									</th>
									<th>
										<span class="blue14">时间</span>
									</th>
								</tr>
								<logic:iterate id="scores" indexId="ind" name="scoresList"
									property="data">
									<logic:present name="scores">
										<tr <%if(ind.intValue()  % 2 == 0) { %> class="tableWhiteBg"
											<%}else{%> class="tableBlueBg" <%}%>>
											<td height="28" align="center">
												<logic:notEmpty name="scores" property="scoresRules">
													<bean:write name="scores"
														property="scoresRules.scoresSource.name" />
												</logic:notEmpty>
											</td>
											<td align="center">
												<logic:empty name="scores" property="transaction">
				无
			</logic:empty>
												<logic:notEmpty name="scores" property="transaction">
													<bean:write name="scores" property="transaction.amount" />
												</logic:notEmpty>
											</td>
											<td align="center">
												<bean:write name="scores" property="scoresAmount"
													format="####" />
											</td>
											<td align="center">
												<bean:write name="scores" property="totalScores"
													format="####" />
											</td>
											<td align="center">
												<bean:write name="scores" property="updateTime"
													format="yyyy-MM-dd" />
											</td>
										</tr>
									</logic:present>
								</logic:iterate>
							</table>
							<table width="100%" height="30" border="0" cellpadding="0"
								cellspacing="0">
								<tr>
									<td>
										<ad:PageBean name="scoresList" />
									</td>
								</tr>
							</table>
						</html:form>
					</table>
					<div class="button_Frame">
						<input type="button" name="return" value="返 回"
							class="button_style"
							onclick="loading('<%=path%>/route.do?modual=space$scores');" />
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
